package the.workshop.bu.constant;

import java.util.HashMap;
import java.util.Map;

public class CustomerCache {
    private static Map<String, Object> CUSTOMER_NAME = new HashMap<>();

    public static void saveName(String name, Object obj) {
        CUSTOMER_NAME.put(name, obj);
    }

    public static Object getByName(String name) {
        return CUSTOMER_NAME.get(name);
    }
}
